package model.EventProperties;

import model.Element;
import model.UrlFile;
import model.Interface.IeventProperties;
import Enums.UiElement;
import android.graphics.Color;
import android.graphics.Rect;

public class ClickEventProperties implements IeventProperties {
	
	 /**
	  * in case of:
	  * event is a rectangleShape : location[0] == upLeftPoint, location[1] == downRightPoint
	  * event is a circleShape : location[0] == center , location[1] == radius
	  */
	private Element elementProperties;
	private boolean isVisible;
	private boolean isShowClickEffect;
	private int clickEffectColor;
	private UrlFile url; //for pic


	public ClickEventProperties(Element elementProperties, boolean isVisible,
			boolean isShowClickEffect, int clickEffectColor,UrlFile url) {
		super();
		this.elementProperties = elementProperties;
		this.isVisible = isVisible;
		this.isShowClickEffect = isShowClickEffect;
		this.clickEffectColor = clickEffectColor;
		this.url = url;
		
	}

	public UrlFile getUrl() {
		return url;
	}


	public void setUrl(UrlFile url) {
		this.url = url;
	}


	/** 
	 * this Ctor is used is case that the UiElement is not visible there for there is no need for 
	 * special properties
	 */
	
	public ClickEventProperties(Rect location, Enums.Shape shape) {
		super();
		this.elementProperties = new Element(location,UiElement.none,Color.TRANSPARENT,null,shape,false);
		this.isVisible = false;
	}
	
	

	public Element getElementProperties() {
		return elementProperties;
	}



	public void setElementProperties(Element elementProperties) {
		this.elementProperties = elementProperties;
	}



	public boolean isShowClickEffect() {
		return isShowClickEffect;
	}

	public void setShowClickEffect(boolean isShowClickEffect) {
		this.isShowClickEffect = isShowClickEffect;
	}

	public int getClickEffectColor() {
		return clickEffectColor;
	}

	public void setClickEffectColor(int clickEffectColor) {
		this.clickEffectColor = clickEffectColor;
	}
	public boolean isVisible() {
		return isVisible;
	}
	public void setVisible(boolean isVisible) {
		this.isVisible = isVisible;
	}
	

}
